package com.bignerdranch.android.furnitureapplication.net;

import com.bignerdranch.android.furnitureapplication.entity.UserInfoBean;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

public interface AccountService {
    @FormUrlEncoded
    @POST("/SSMDemo/login")
    Observable<LoginResponse> test_loginCheck(@Field("user_account") String UserName, @Field("user_password") String Password);

    @FormUrlEncoded
    @POST("/SSMDemo/furnitureRegister")
    Observable<LoginResponse> user_register(@Field("user_account") String UserName, @Field("user_password") String Password);

    @FormUrlEncoded
    @POST("/SSMDemo/getUserInfoByName")
    Observable<UserInfoBean> getUserInfo(@Field("user_account") String userAccount);

    @FormUrlEncoded
    @POST("/SSMDemo/updateUserInfo")
    Observable<LoginResponse> updateUserBalance(@Field("user_account") String userAccount, @Field("user_balance") double userBalance);
}
